FROM centos:7.4

#BASE
RUN yum install -y wget vim iproute net-tool*

COPY go1.17.6.linux-amd64.tar.gz /root

RUN tar -zxf /root/go1.17.6.linux-amd64.tar.gz -C /usr/local && rm -rf /root/go1.17.6.linux-amd64.tar.gz

COPY httpserver.tar.gz /root

COPY docker-entrypoint.sh /root

RUN chmod +x /root/docker-entrypoint.sh

#Entrypoint
ENTRYPOINT ["/root/docker-entrypoint.sh"]